﻿<?xml version ="1.0" encoding="utf-8"?>

<xsl:stylesheet version ="1.0" 
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

 

 <xsl:template match="/">
   <html xmlns = "http://www.w3.org/1999/xhtml">
     <head>
       <title>Sports</title>     
     </head>

     <body>
       <table>
         <tr>
           <th>ID</th>
           <th>Sport</th>
           <th>Information</th>
           
            <xsl:for-each select="sports/game">
              <tr>                
                <th><xsl:value-of select="@id"/></th>
                <th><xsl:value-of select="name"/></th>
                <th><xsl:value-of select="paragraph"/></th>                              
              </tr>         
           </xsl:for-each>
         </tr>       
       </table>
     </body>
   
   </html>
 
 </xsl:template>
</xsl:stylesheet>
  